<script setup>
import { storeList as getStoreList } from '@/api/store'
import { onMounted, ref, reactive } from 'vue'
let params = reactive({
  page: 1,
  limit: 10
})
const tableData = ref([])
const StoreList = async () => {
   let {data}= await getStoreList(params)
   tableData.value =data
}
onMounted(() => {
  StoreList()
})
</script>


<template>
  <div class="about">
    <h1>门店管理</h1>
    <el-table :data="tableData" style="width: 100%" border>
    <el-table-column prop="store_name" label="门店名称" width="180" />
    <el-table-column prop="tel" label="电话" width="180" />
    <el-table-column prop="address" label="地址" />
  </el-table>
  </div>
</template>

<style></style>